
#pragma once

template<typename Container>
inline void ClearPtrContainer(Container& container)
{
	Container::iterator it = container.begin();
	for(; it!=container.end(); ++it)
	{
		delete *it;
		*it = NULL;
	}

	container.clear();
}